



//正式环境
//var isTest = false;
//var baseUrl = "http://hn.tlcssk.com/cssk";
//测试环境
var isTest = true;
var baseUrl = "http://sccs.tn12396.com/cssk";

//var baseUrl = "http://192.168.0.112:8088/cssk";
var urlManager = {
	
	//获取项目和区域
	getProjects:function(){
		return baseUrl+"/PhoneAlarm/getProjectlist";
	},
	//获取传感数据配置
	getAlarmruleCondition:function(){
		return baseUrl+"/PhoneAlarm/getAlarmruleCondition";
	},
	//获取固件
	getFirmware:function(){
		return baseUrl+"/phoneWork/findNewFileVersion?fileType=1";
	},
	//今日告警处理率(报表)
	getTotayAlarm:function(){
		return baseUrl+"/PhoneAlarm/statisticsJrgjcll";
	},
	//告警统计分析(报表)
	getAlarmTotal:function(){
		return baseUrl+"/PhoneAlarm/statisticsGjtjfx";
	},
	
	//告警统计点击详情
	getTerminalinfo:function(){
		return baseUrl+"/PhoneAlarm/getTerminalinfo";
	},
	
	//工单视图
	getWorkView:function(){
		return baseUrl+"/phoneWork/workview";
	},
	//告警统计
	getAlarmtj:function(){
	 	return baseUrl+"/PhoneAlarm/getAlarmtj";
	 },
	
	//获取终端列表(终端报装使用)
	 getTerminalBuilds:function(){
	 	return baseUrl+"/PhoneAlarm/getTerminalBuilds";
	 },
	//主动定位上传
	saveUserTrajectory:function(){
		return baseUrl+"/phoneWork/saveUserTrajectory";
	},
	//base64上传
	uploadFile:function(){
		return baseUrl+"/PhoneCheck/uploadFile";
	},
	
	//上传图片通用接口
	uploadImg:function(){
		return baseUrl+"/PhoneCheck/fileUpload";
	},
	
	//施工预约已完成
	saveCompleted:function(){
		return baseUrl+"/phoneWork/saveCompleted";
	},
	//施工 新增
	saveConstructionReservation:function(){
		return baseUrl+"/phoneWork/saveConstructionReservation";
	},
	//施工详情
	constructionReservation:function(){
		return baseUrl+"/phoneWork/constructionReservation";
	},
	//施工预约列表
	reservationList:function(){
		return baseUrl+"/phoneWork/constructionReservationList";
	},
	//隐患上传
	uploadCheckTrouble:function(){
		return baseUrl+"/PhoneCheck/mobileCheckTroubleUpdate";
	},
	
	//隐患列表查询
	getCheckTrouble:function(){
		return baseUrl+"/PhoneCheck/mobileGetCheckTrouble";
	},
	
	//隐患详情查询
	troubleDetail:function(){
		return baseUrl+"/PhoneCheck/troubleDetail";
	},
	
	//上传巡检任务 打卡
	mobileExeCheckTask:function(){
		return baseUrl+"/PhoneCheck/mobileExeCheckTask";
	},
	
	//巡检任务 完成
	inspection_Finish:function(){
		return baseUrl+"/PhoneCheck/mobileFinishCheck";
	},
	//巡检任务列表
	inspection_list:function(){
		return baseUrl+"/PhoneCheck/mobileGetCheckTask";
	},
	//巡检任务详情
	inspection_detail:function(){
		return baseUrl+"/PhoneCheck/getChecktaskDetail";
	},
	//巡检终端列表
	inspection_getTerminalsList:function(){
		return baseUrl+"/PhoneCheck/getTerminalsByChecktask";
	},
	
	//终端报装
	resTerminalBuild:function(){
		return baseUrl+"/PhoneAlarm/resTerminalBuild";
	},
	//传感器数据
	sensorData:function(){
		return baseUrl+"/PhoneAlarm/getCgsj";
	},
	
	//工单历史记录
	workHistoryList:function(){
		return baseUrl+"/phoneWork/workHistoryList";
	},
	//工单列表图(统计)
	work_total:function(){
		return baseUrl+"/phoneWork/workCount";
	},
	
	//工单接收
	work_jieshou:function(){
		return baseUrl+"/phoneWork/updateWorkState40";
	},
	
	//工单 进一步处理
		work_jybcl:function(){
		return baseUrl+"/phoneWork/updateWorkState50";
	},
	
	//工单 完成
		work_over:function(){
		return baseUrl+"/phoneWork/updateWorkState60";
	},
	

	//终端列表(新增工单 下拉菜单)
	terminalList:function(){
		return baseUrl+ "/PhoneAlarm/getTerminallist";
	},
	
	//告警 生成工单
	generateWork:function(){
		return baseUrl +"/PhoneAlarm/generateWork";
	},
	
	//告警详情
	alermDetail:function(){
		return baseUrl+ "/PhoneAlarm/getAlarmDetial";
	},
	//告警列表
   alermlist:function(){
    	return baseUrl+ "/PhoneAlarm/getNewAlarmlist";
    },

	//终端详情
	terminalDetail:function (){
		return baseUrl+"/PhoneAlarm/getTerminaldetail";
	},

	//新建工单
	addWork:function(){
		return baseUrl+"/phoneWork/saveWork";
	},

	//工单详情
    workDetai:function(){
    	return baseUrl +"/phoneWork/workDetail";
    },

	//工单列表
    worklist:function(){
    	return baseUrl+ "/phoneWork/worklist";
    },

	//用户登录
	loginInfo: function() {
		return baseUrl + "/loginPhone";
	},
	
	
	//找回密码获取验证码
	sendCode: function() {
		return baseUrl + "/findPassWord";
	},
	
	//重置密码
	resetPwd:function(){
		 return baseUrl+"/updatePassWord";
	}


	
}